package top.kaoshanji.p2ch10b;

import java.util.Random;

/**
 * 代码清单-p2ch10b-249页b：用非常量初始化表达式来初始化接口
 * author kaoshanji
 * ^_^
 * create time 2025/3/11 10:36
 */
public interface RandVals {

    Random RAND = new Random(47);

    int RANDOM_INT = RAND.nextInt(10);
    long RANDOM_LONG = RAND.nextLong() * 10;
    float RANDOM_FLOAT = RAND.nextLong() * 10;
    double RANDOM_DOUBLE = RAND.nextDouble() * 10;

}
